package com.jd.myaaaccount.entity;

/**
 * 宿主实体 表示一个家庭或个人
 * 
 * @author JD
 * 
 */
public class Host {
	private String id;
	private int number;
	private String name;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Host() {
	}

	public Host(User user) {
		setId(user.getId());
		setNumber(user.getNumber());
		setName(user.getName());
	}

	public Host(Family family) {
		setId(family.getId());
		setNumber(family.getNumber());
		setName(family.getName());
	}

}
